<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="referrer" content="never">
    <title>@yield('title') - 后台管理系统</title>
    <!-- Tell the browser to be responsive to screen width -->
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    <meta name="_token" content="{{ csrf_token() }}"/>
    <!-- Bootstrap 3.3.6 -->
    <link rel="stylesheet" href="/static/libs/bootstrap/bootstrap.min.css">
    <!-- Font Awesome -->
    <link rel="stylesheet" href="/static/libs/font-awesome/4.5.0/css/font-awesome.min.css">
    <link rel="stylesheet" type="text/css" href="/static/css/common.css">
    <link rel="stylesheet" href="/static/css/backend/base.css?v=1.0.20">
    <link rel="stylesheet" type="text/css" href="/static/css/webstyle.css?v=1.0.1">

    <script src="/static/libs/jquery-2.2.3.min.js"></script>
    <script type="text/javascript" src="/static/js/general.js?v=1.0.1"></script>
    <script src="/static/libs/bootstrap/bootstrap.min.js" type="text/javascript"></script>

    <script src="/static/libs/vue.min.js"></script>

    <script src="/static/libs/vue-resource.js"></script>

    <link href="/static/libs/element-ui/2.15.7/index.css" rel="stylesheet">
    <script src="/static/libs/element-ui/2.15.7/index.js"></script>

    <script type="text/javascript">
        //vue-resource 全局拦截器
        Vue.http.interceptors.push(function(request, next) {
            next(function(response) {
                //console.log('Vue.http.interceptors')
                //console.log(response.body);
                //todo
                // if(response.body){
                //     var res = response.body;
                //     if(res.result===0 && (res.data && res.data.login_status===1)){
                //
                //         window.location.href = res.data.login_url;
                //     }
                // }


                return response
            })
        })
        if(navigator.appName == 'Microsoft Internet Explorer'){
            if(navigator.userAgent.indexOf("MSIE 5.0")>0 ||
                navigator.userAgent.indexOf("MSIE 6.0")>0 ||
                navigator.userAgent.indexOf("MSIE 7.0")>0||
                navigator.userAgent.indexOf("MSIE 8.0")>0)
            {
                alert('您使用的 IE 浏览器版本过低, 推荐使用 Chrome 浏览器或 IE9 及以上版本浏览器.');
            }
        }
    </script>
</head>

<body>
<div class="wrapper">
    @include('backend.layouts.mainSidebar')

    @include('backend.layouts.mainMenu')

    @if (\app\backend\modules\common\services\MenuService::getInstance()->isShowSecondMenu())
        @include('backend.layouts.secondSidebar')
    @else
        <style>
            .main-panel{
                width: calc(100% - 96px) ;
            }
            .vue-page{
                width: calc(100% - 116px) ;
            }
        </style>
    @endif
    @include('backend.layouts.mainHeader')

        <!-- Main Footer -->
    @include('backend.layouts.mainFooter')
</div>
<script>
</script>
</body>
</html>
